#################################################################
## This Makefile Exported by MinGW Developer Studio
## Copyright (c) 2002-2004 by Parinya Thipchart
#################################################################

ifneq (,$(findstring Release, $(CFG)))
  override CFG = Release
else
  override CFG = Debug
endif

PROJECT = qlrules
CC = "C:\MinGW\bin\gcc.exe"

AR = "$(COMPILER_BIN)ar.exe"
ifeq ($(CFG),Debug)
  OBJ_DIR = Debug
  OUTPUT_DIR = Debug
  TARGET = qlrules.a
  C_INCLUDE_DIRS = -I"../../../../../C++/boost_1_32_0" -I"../../../../../C++/loki_alexandresku/loki" 
  C_PREPROC = 
  CFLAGS = -pipe  -Wall -g2 -O0 
  RC_INCLUDE_DIRS = 
  RC_PREPROC = 
  RCFLAGS = 
  ARFLAGS =  rcs
endif

ifeq ($(CFG),Release)
  OBJ_DIR = Release
  OUTPUT_DIR = Release
  TARGET = qlrules.a
  C_INCLUDE_DIRS = -I"../../../../../C++/boost_1_32_0" -I"../../../../../C++/loki_alexandresku/loki" 
  C_PREPROC = 
  CFLAGS = -pipe  -Wall -g0 -O2 
  RC_INCLUDE_DIRS = 
  RC_PREPROC = 
  RCFLAGS = 
  ARFLAGS =  rcs
endif

ifeq ($(OS),Windows_NT)
  NULL =
else
  NULL = nul
endif

SRC_OBJS = \
  $(OBJ_DIR)/f_dynamic_rules.o	\
  $(OBJ_DIR)/f_load.o	\
  $(OBJ_DIR)/f_logic.o	\
  $(OBJ_DIR)/f_ns.o	\
  $(OBJ_DIR)/f_static_rules.o	\
  $(OBJ_DIR)/functions.o	\
  $(OBJ_DIR)/qlrules.o	\
  $(OBJ_DIR)/vars.o

define build_target
@echo Creating library...
@$(AR) $(ARFLAGS) "$(OUTPUT_DIR)\$(TARGET)" $(SRC_OBJS)
endef

define compile_source
@echo Compiling $<
@$(CC) $(CFLAGS) $(C_PREPROC) $(C_INCLUDE_DIRS) -c "$<" -o "$@"
endef

.PHONY: print_header directories

$(TARGET): print_header directories $(SRC_OBJS)
	$(build_target)

.PHONY: clean cleanall

cleanall:
	@echo Deleting intermediate files for 'qlrules - $(CFG)'
	-@del $(OBJ_DIR)\*.o
	-@del "$(OUTPUT_DIR)\$(TARGET)"
	-@rmdir "$(OUTPUT_DIR)"

clean:
	@echo Deleting intermediate files for 'qlrules - $(CFG)'
	-@del $(OBJ_DIR)\*.o

print_header:
	@echo ----------Configuration: qlrules - $(CFG)----------

directories:
	-@if not exist "$(OUTPUT_DIR)\$(NULL)" mkdir "$(OUTPUT_DIR)"
	-@if not exist "$(OBJ_DIR)\$(NULL)" mkdir "$(OBJ_DIR)"

$(OBJ_DIR)/f_dynamic_rules.o: ../../../qlrules/f_dynamic_rules.c	\
../../../qlrules/functions.h	\
../../../qlrules/impl.h	\
../../../qlrules/qlrules.h	\
../../../ql/ql.h	\
../../../ql/qleval.h	\
../../../qlrules/error.h	\
../../../ql/error.h	\
../../../qlrules/error_defs.h
	$(compile_source)

$(OBJ_DIR)/f_load.o: ../../../qlrules/f_load.c	\
../../../qlrules/functions.h	\
../../../qlrules/impl.h	\
../../../qlrules/qlrules.h	\
../../../ql/ql.h	\
../../../ql/qleval.h	\
../../../qlrules/error.h	\
../../../ql/error.h	\
../../../qlrules/error_defs.h	\
../../../ql/qlreader.h
	$(compile_source)

$(OBJ_DIR)/f_logic.o: ../../../qlrules/f_logic.c	\
../../../qlrules/functions.h	\
../../../qlrules/impl.h	\
../../../qlrules/qlrules.h	\
../../../ql/ql.h	\
../../../ql/qleval.h	\
../../../qlrules/error.h	\
../../../ql/error.h	\
../../../qlrules/error_defs.h
	$(compile_source)

$(OBJ_DIR)/f_ns.o: ../../../qlrules/f_ns.c	\
../../../qlrules/functions.h	\
../../../qlrules/impl.h	\
../../../qlrules/qlrules.h	\
../../../ql/ql.h	\
../../../ql/qleval.h	\
../../../qlrules/error.h	\
../../../ql/error.h	\
../../../qlrules/error_defs.h	\
../../../ql/qlreader.h
	$(compile_source)

$(OBJ_DIR)/f_static_rules.o: ../../../qlrules/f_static_rules.c	\
../../../qlrules/functions.h	\
../../../qlrules/impl.h	\
../../../qlrules/qlrules.h	\
../../../ql/ql.h	\
../../../ql/qleval.h	\
../../../qlrules/error.h	\
../../../ql/error.h	\
../../../qlrules/error_defs.h
	$(compile_source)

$(OBJ_DIR)/functions.o: ../../../qlrules/functions.c	\
../../../qlrules/functions.h	\
../../../qlrules/impl.h	\
../../../qlrules/qlrules.h	\
../../../ql/ql.h	\
../../../ql/qleval.h	\
../../../qlrules/error.h	\
../../../ql/error.h	\
../../../qlrules/error_defs.h
	$(compile_source)

$(OBJ_DIR)/qlrules.o: ../../../qlrules/qlrules.c	\
../../../qlrules/impl.h	\
../../../qlrules/qlrules.h	\
../../../ql/ql.h	\
../../../ql/qleval.h	\
../../../qlrules/error.h	\
../../../ql/error.h	\
../../../qlrules/error_defs.h
	$(compile_source)

$(OBJ_DIR)/vars.o: ../../../qlrules/vars.c	\
../../../qlrules/functions.h	\
../../../qlrules/impl.h	\
../../../qlrules/qlrules.h	\
../../../ql/ql.h	\
../../../ql/qleval.h	\
../../../qlrules/error.h	\
../../../ql/error.h	\
../../../qlrules/error_defs.h
	$(compile_source)

